package com.xjscrm.common.vo.tasktagauto;

import com.xjscrm.common.entity.WwGroup;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.util.List;
import java.util.Objects;

/**
 * 时间范围字段
 * @author liuqi
 * @date 2024年03月15日 17:43
 */
@Data
@ApiModel("群信息选择对象")
public class GroupSelect {

    @ApiModelProperty("机器人wxId")
    private String deviceId;

    @ApiModelProperty("类型（0-不是；1-是）")
    private Integer isAll;

    @ApiModelProperty("群wxid列表")
    private List<String> groupWxidList;

    @ApiModelProperty("群列表")
    private List<WwGroupVo> wwGroupList;

    @Override
    public boolean equals(Object o) {
        if (this == o) return true;
        if (o == null || getClass() != o.getClass()) return false;
        GroupSelect groupSelect = (GroupSelect) o;
        return Objects.equals(deviceId, groupSelect.deviceId);
    }

    @Override
    public int hashCode() {
        return Objects.hash(deviceId, isAll, groupWxidList);
    }
}
